<template>
  <div class="Commit">
      <p>用户名：{{userInfo.userName}}</p>
      <p>密码：{{userInfo.password}}</p>
      <p>用户信息：{{userInfo}}</p>
      <p>getters：{{getName}}</p>
      <p>mutation：{{name}}</p>
  </div>
</template>
<script>
import { mapGetters } from "vuex";

export default {
  name: "Commit",
  data() {
    return {};
  },
  computed: {
    ...mapGetters(["getName"]),
    name() {
      return this.$store.state.name;
    },
    userInfo() {
      return this.$store.state.info;
    }
  },
  methods: {}
};
</script>
<style>
</style>
